import React,{Component} from 'react'
import {NavLink} from 'react-router-dom'

export default class MyNavLink extends Component {
  render(){
    // const {title} = this.props
    return (
      //第一种写法
      // <NavLink activeClassName="baba" className="list-group-item" {...this.props}>{title}</NavLink>

      //第二种写法
      <NavLink activeClassName="baba" className="list-group-item" {...this.props}/>
    )
  }
}